# 设计类
class Student:
    name=None
    age=None
    sex=None
    def sayHi(self,word):
        # self成员变量
        return  self.name + word

# 创建对象
stu = Student()
print(stu)
print(type(stu))
# 给对象赋值
stu.name = "lz"
stu.age = 25
stu.sex = "男"
hi = stu.sayHi('hihihi')
print(stu.name)
print(hi)

stu1 = Student()
stu1.name = 'gf'
print(stu1.name)
print(stu1.sayHi('nnnnnn'))

